package com.bbs.core.dao;

import java.util.List;

import com.bbs.core.model.Message;

public interface MessageDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Message message);

    int insertSelective(Message message);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message message);

    int updateByPrimaryKey(Message message);
    
    List<Message> selectByUserIdAndTopicId(Message msg);
}